package com.entity;


public class Card {

  private Integer id;
  private Integer cardId;
  private Integer userId;
  private double amount;
  private Integer credit;
  private Integer status;
  private Integer staffId;
  private Integer levelId;
  private User user;
  private Cardtype cardtype;

  public Card() {
  }

  public Card(Integer cardId, double amount) {
    this.cardId = cardId;
    this.amount = amount;
  }

  @Override
  public String toString() {
    return "Card{" +
            "id=" + id +
            ", cardId=" + cardId +
            ", userId=" + userId +
            ", amount=" + amount +
            ", credit=" + credit +
            ", status=" + status +
            ", staffId=" + staffId +
            ", levelId=" + levelId +
            '}';
  }

  public Card(Integer cardId, Integer userId, double amount, Integer credit, Integer status, Integer staffId, Integer levelId) {
    this.cardId = cardId;
    this.userId = userId;
    this.amount = amount;
    this.credit = credit;
    this.status = status;
    this.staffId = staffId;
    this.levelId = levelId;
  }

  public Card(Integer id, Integer cardId, Integer userId, double amount, Integer credit, Integer status, Integer staffId, Integer levelId) {
    this.id = id;
    this.cardId = cardId;
    this.userId = userId;
    this.amount = amount;
    this.credit = credit;
    this.status = status;
    this.staffId = staffId;
    this.levelId = levelId;
  }

  public Cardtype getCardtype() {
    return cardtype;
  }

  public void setCardtype(Cardtype cardtype) {
    this.cardtype = cardtype;
  }

  public User getUser() {
    return user;
  }

  public void setUser(User user) {
    this.user = user;
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }


  public Integer getCardId() {
    return cardId;
  }

  public void setCardId(Integer cardId) {
    this.cardId = cardId;
  }


  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }


  public double getAmount() {
    return amount;
  }

  public void setAmount(double amount) {
    this.amount = amount;
  }


  public Integer getCredit() {
    return credit;
  }

  public void setCredit(Integer credit) {
    this.credit = credit;
  }


  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }


  public Integer getStaffId() {
    return staffId;
  }

  public void setStaffId(Integer staffId) {
    this.staffId = staffId;
  }


  public Integer getLevelId() {
    return levelId;
  }

  public void setLevelId(Integer levelId) {
    this.levelId = levelId;
  }

}
